package com.mxf.code.state_factory2;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 启动状态实现类
 *
 * @author 28382
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class StartState implements State {

    public void doAction(StateContext stateContext) {
        System.out.println("Player is in start state");
        stateContext.setState(this);
    }

    public String toString() {
        return "Start State";
    }
}


